package com.gxa.modules.sys.service.impl;

import com.gxa.common.utils.PageUtils;
import com.gxa.common.utils.Query;
import com.gxa.modules.sys.dto.ComboDto;
import com.gxa.modules.sys.dto.PayOrderDto;
import com.gxa.modules.sys.dto.RechargeDto;
import com.gxa.modules.sys.mapper.RechargeMapper;
import com.gxa.modules.sys.service.RechargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class RechargeServiceImpl implements RechargeService {
    @Autowired
    private RechargeMapper rechargeMapper;

    @Override
    public PageUtils queryByPage(Map<String, Object> params) {
        PageUtils pageUtils = new PageUtils(new Query<RechargeDto>().getPage(params));
        List<PayOrderDto> rechargeDtos =this .rechargeMapper.queryAll(params);
        pageUtils.setList(rechargeDtos);

        return pageUtils;
    }


    @Override
    public List<ComboDto> queryRecharge() {


            return this.rechargeMapper.queryRecharge();
    }





}
